package com.zhny.sensor.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
 * 用户实体类
 * @author zhy
 */
@Entity
@Table(name="sys_user")
public class User implements Serializable{

	@Id
	private String id;//

	private String loginName;//登录名
	private String  password;//密码
	private String name;//姓名
	private String role;
	private String email;//邮箱
	private String phone;//phone
	private String mobile;//手机
	private String sex;//性别
	private String idCard;//ID卡编号
	private String createBy;//创建者
	private java.util.Date createDate;//创建时间
	private String updateBy;//更新者
	private java.util.Date updateDate;//更新时间
	private String qq;  //qq
	private String status; //状态
	private String wechat;  //微信号
	private String wechatCode;  //微信二维码图片
	private String wechatCodeDecode;  //微信二维码转成的链接
	private String staticDecode;  //静态二维码标识

	public String getStaticDecode() {
		return staticDecode;
	}

	public void setStaticDecode(String staticDecode) {
		this.staticDecode = staticDecode;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getLoginName() {		
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String  getPassword() {
		return password;
	}
	public void setPassword(String  password) {
		this.password = password;
	}

	public String getName() {		
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {		
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {		
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMobile() {		
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getSex() {		
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getIdCard() {		
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getCreateBy() {		
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public java.util.Date getCreateDate() {		
		return createDate;
	}
	public void setCreateDate(java.util.Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateBy() {		
		return updateBy;
	}
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public java.util.Date getUpdateDate() {		
		return updateDate;
	}
	public void setUpdateDate(java.util.Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getWechatCode() {
		return wechatCode;
	}

	public void setWechatCode(String wechat_code) {
		this.wechatCode = wechat_code;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getWechat() {
		return wechat;
	}

	public void setWechat(String wechat) {
		this.wechat = wechat;
	}

	public String getWechatCodeDecode() {
		return wechatCodeDecode;
	}

	public void setWechatCodeDecode(String wechatCodeDecode) {
		this.wechatCodeDecode = wechatCodeDecode;
	}

	@Override
	public String toString() {
		return "User{" +
				"id='" + id + '\'' +
				", loginName='" + loginName + '\'' +
				", password='" + password + '\'' +
				", name='" + name + '\'' +
				", role='" + role + '\'' +
				", email='" + email + '\'' +
				", phone='" + phone + '\'' +
				", mobile='" + mobile + '\'' +
				", sex='" + sex + '\'' +
				", idCard='" + idCard + '\'' +
				", createBy='" + createBy + '\'' +
				", createDate=" + createDate +
				", updateBy='" + updateBy + '\'' +
				", updateDate=" + updateDate +
				", qq='" + qq + '\'' +
				", status='" + status + '\'' +
				", wechat='" + wechat + '\'' +
				", wechatCode='" + wechatCode + '\'' +
				", wechatCodeDecode='" + wechatCodeDecode + '\'' +
				", staticDecode='" + staticDecode + '\'' +
				'}';
	}
}
